package person.lance.regexandgame.game;

import javafx.scene.Scene;
import person.lance.regexandgame.game.plant.Plant;
import person.lance.regexandgame.game.scenes.Scenes;

public class Player {
    Scenes scenes;
    int suns;

    public void growPlant(Plant plant) {

        if (suns - plant.getSun() > 0) {
            scenes.getPlants().add(plant);
            suns -= plant.getSun();
        }

    }

    public Scenes getScenes() {
        return scenes;
    }

    public void setScenes(Scenes scenes) {
        this.scenes = scenes;
    }
}
